package com.cynic.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cynic.api.domain.UserEntity;
import com.cynic.api.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 测试
 * @author: cynic
 * @create: 2018-12-01 16:33
 **/
@Controller
public class TestUserController {

    @Reference
    UserService userService;

    @RequestMapping("/test")
    public UserEntity getUser() {
        UserEntity userEntity = userService.getUser();
        return userEntity;
    }
}
